package edu.gatech.cs2340.JUnit;

import static org.junit.Assert.*;

import org.junit.Test;
import edu.gatech.cs2340.OregonTrail.*;

public class TestPlayer {

	/**
	  * @Author Sanghun Oh
	  *
	  * This test the constructor for a Farmer.
	  */
	@Test
	public void testFarmer() {
		Player farmerTest = new Farmer("Old McDonald");
		
		assertEquals("Old McDonald", farmerTest.getName());
		assertEquals(400, farmerTest.getMoney());
	}
	
	@Test
	public void testCarpenter(){
		Player carpenterTest = new Carpenter("Bob the Builder");
		assertEquals("Bob the Builder", carpenterTest.getName());
		assertEquals(800, carpenterTest.getMoney());
	}
	
	@Test
	public void testBanker(){
		Player bankerTest = new Banker("Gordon Gekko");
		assertEquals("Gordon Gekko", bankerTest.getName());
		assertEquals(1600, bankerTest.getMoney());
	}
}
